package com.course.server.service;

import com.course.server.domain.Test;
import com.course.server.domain.TestExample;
import com.course.server.mapper.TestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class TestService {


    @Autowired
    private TestMapper testMapper;


    public List<Test> list() {
        TestExample example = new TestExample();
        example.setOrderByClause("id asc");
        return testMapper.selectByExample(example);
    }


}
